<?php
namespace app\admin\validate;

use think\Validate;

class Ng extends Validate
{
    protected $rule = [

        'title' => 'require',
        'url' => 'require',
        'status' => 'require|in:0,1',
    ];

    protected $message = [
        'title' => '{%title_val}',
        'url' => '{%url_val}',

        'status' => '{%status_val}',
    ];

    protected $scene = [
        'add'   => ['url', 'title'],
        'edit'  => [ 'url', 'title'],
        'status' => ['status'],
        'typename' => ['typename'],
        'dirs' => ['dirs'],
    ];
}